package com.desgin.observer;

import java.util.ArrayList;

public class WeatherStation {
    public static void main(String[] args) {

         WeatherData weatherData = new WeatherData();

         CurrentConditionDisplay conditionDisplay = new CurrentConditionDisplay(weatherData);
         StatisticsDisplay statisticsDisplay = new StatisticsDisplay(weatherData);

         ArrayList<Observer> observers = weatherData.getObservers();
         for (int i=0;i< observers.size();i++){
             System.out.println(observers.get(i));
         }
         weatherData.setMeansurements(80,38,70.90f);
         weatherData.setMeansurements(70,56.3f,75.90f);
         weatherData.setMeansurements(72,48.4f,72.90f);

    }
}
